﻿#ifndef HOTELDETAILSHEADER_H
#define HOTELDETAILSHEADER_H

#include <QWidget>
#include "globalvars.h"
#include <QDebug>

namespace Ui {
class HotelDetailsHeader;
}

class HotelDetailsHeader : public QWidget
{
    Q_OBJECT
signals:
    void signalSubmitSave(bool);
    void signalJumpToComment();

public:
    explicit HotelDetailsHeader(QWidget *parent = nullptr);
    ~HotelDetailsHeader();

    void initWindowsUnits();
    void setImage(const QList<QImage> &imageList);
    void setHotelInfo(const HotelInfo &hotelInfo);
    void setSmallImage();
    void setSubmitSaveResult(bool result, const QString& msg);

private slots:
    void on_pb_pre_clicked();
    void on_pb_next_clicked();

    void on_pb_image1_clicked();
    void on_pb_image2_clicked();
    void on_pb_image3_clicked();
    void on_pb_image4_clicked();

    void on_pb_save_clicked();
    void on_pb_watchComment_clicked();

private:
    Ui::HotelDetailsHeader *ui;

    int m_page;
    bool m_save;
    int m_pageCount;
    QList<QImage> m_imageList;
    HotelInfo m_hotelInfo;
};

#endif // HOTELDETAILSHEADER_H
